﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="empleados.aspx.cs" Inherits="GesWork.maestros.empleados" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
             <table class="tblGeneral" >
            <tr class="tblHeader">
                   
                    <td>
                    Nombre
                    </td>
                    <td>
                    Direccion
                    </td>
                    <td>
                    Telefono
                    </td>
                    <td>
                    Email
                    </td>

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                <tr class="tblBody">
                    
                    <td>
                     <a href="empleado.aspx?id=<%# Eval("ID") %>" > <%# Eval("Name") %>  <%# Eval("FirstName")%> <%# Eval("LastName")%></a>
                    </td>
                    
                    <td>
                     <%# Eval("Direccion")%>, <%# Eval("Provincia")%>
                    </td>
                    <td>
                    <%# Eval("CI_Telephone1")%>
                    </td>
                    <td>
                    <a href="mailto:<%# Eval("CI_Email1")%>"> <%# Eval("CI_Email1")%></a>
                    </td>

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        
                SelectCommand="SELECT Employee.ID, Employee.Name, Employee.LastName, Employee.FirstName, Employee.CI_Email1, Employee.CI_Telephone1, Direccion, Provincia  FROM Employee ">
    </asp:SqlDataSource>
    
    
    <br />
             <br />
            
            <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/maestros/empleado.aspx"   />
<p>
</p>
    </asp:content>

